package oom;

/**
 * @ClassName OutOfMemoryDemo
 * @Author ykx
 * @Date 2024/6/22 9:45
 * @Version 1.0
 */
public class OutOfMemoryDemo {

    static final int _1MB = 1024 * 1024;

    public static void main(String[] args) {
        while (true) {
            int[] i = new int[500 * _1MB];
        }
    }
}
